function ret = jointpos(q)
tmp = jpos_mat(q(:, 1));
ret = zeros(2, size(tmp, 2), size(q, 2));

for i = 1:size(q, 2)
    ret(:, :, i) = ...
        jpos_mat(q(:, i));
end
